import axios from '@/api/fetch';
import SERVER from '@/api/server';

// 获取数据字典
export const getdictList = params => axios.get('/dms.web/part/rest/basedata/partInfos', { params });
// 维修类型查询
export const searchRepairType = params => axios.get(`${SERVER.DMSCLOUD_REPAIR}/basedataRepairtypes/query`, { params });
// 获取工时单价下拉框
export const searchLabourprice = params => axios.get(`${SERVER.DMSCLOUD_REPAIR}/basedataRepairtypes/labourpriceItem`, { params });
// 修改维修类型
export const addRepair = params => axios.post(`${SERVER.DMSCLOUD_REPAIR}/basedataRepairtypes/save`, params);
// 更新
export const updateRepair = params => axios.post(`${SERVER.DMSCLOUD_REPAIR}/basedataRepairtypes/savelabourprice`, params);
// 查询收费区分
export const searchDistinguish = params => axios.get(`${SERVER.DMSCLOUD_REPAIR}/basedataRepairtypes/charge`, { params });
